package com.owen.dao;


import com.owen.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    public User login(@Param("username") String username, @Param("password") String password);

    public List<User> find();

    public Integer userDelete(Integer id);

    public Integer addUser(User user);

    public Integer disable(Integer id);

    public Integer enable(Integer id);

    public List<User> findByName(User user);

    public Integer updatepassword(User user);

    public Integer deleteBatch(Integer[] ids);
}
